﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using Telerik;
using Telerik.Web;
using Telerik.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using Adex;

namespace MediaMonitor.Common
{

    /// <summary>
    /// Summary description for RadUtility
    /// </summary>
    public class RadUtility
    {
        public static void SelectListItem(RadComboBox List, string value)
        {
            RadComboBoxItem itm;
            itm = List.FindItemByValue(value);
            List.SelectedIndex = List.Items.IndexOf(itm);
        }

        public static void SelectListItemByText(RadComboBox List, string text)
        {
            RadComboBoxItem itm;
            itm = List.FindItemByText(text);
            List.SelectedIndex = List.Items.IndexOf(itm);
        }

    }

}